.class public Lcom/nemustech/regina/AppInfoManager;
.super Landroid/content/BroadcastReceiver;
.source "AppInfoManager.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/nemustech/regina/AppInfoManager$AppInfoComparator;,
        Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;,
        Lcom/nemustech/regina/AppInfoManager$AppLoader;,
        Lcom/nemustech/regina/AppInfoManager$BitmapCacheLoader;
    }
.end annotation


# static fields
.field private static final LAUNCHER_ICON:I = 0x7f020077

.field private static final LOG_FLAG:Z = false

.field private static final MAXIMUM_BITMAP_CACHE_CAPACITY:I = 0x140

.field private static final NOTIFICATION_ID:I = 0x0

.field private static final NOTIFICATION_MESSAGE_TYPE_EXTERNAL_LOADING:I = 0x2

.field private static final NOTIFICATION_MESSAGE_TYPE_EXTERNAL_LOADING_DONE:I = 0x3

.field private static final NOTIFICATION_MESSAGE_TYPE_INTERNAL_LOADING:I = 0x0

.field private static final NOTIFICATION_MESSAGE_TYPE_INTERNAL_LOADING_DONE:I = 0x1

.field public static final SCROLL_DIRECTION_LEFT:I = 0x0

.field public static final SCROLL_DIRECTION_RIGHT:I = 0x1

.field public static final SET_SECRET_APPLIST:Ljava/lang/String; = "ACTION_SET_SECRET_APPLIST"

.field private static final TAG:Ljava/lang/String; = "AppInfoManager"

.field private static final UI_NOTIFICATION_RATE:I = 0x8

.field private static final sWorker:Landroid/os/Handler;

.field private static final sWorkerThread:Landroid/os/HandlerThread;


# instance fields
.field private mAppBitmapLoaded:Z

.field private mAppInfoData:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/nemustech/regina/AppInfo;",
            ">;"
        }
    .end annotation
.end field

.field private mAppInfoLoaded:Z

.field private mAppLoader:Lcom/nemustech/regina/AppInfoManager$AppLoader;

.field private mBitmapCache:Lcom/nemustech/tiffany/util/TFCache;

.field private mBitmapCacheLoader:Lcom/nemustech/regina/AppInfoManager$BitmapCacheLoader;

.field private final mDataSetObservable:Landroid/database/DataSetObservable;

.field private mDisplayedAppInfoData:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/nemustech/regina/AppInfo;",
            ">;"
        }
    .end annotation
.end field

.field private mElementBitmapCache:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Landroid/content/ComponentName;",
            "Landroid/graphics/Bitmap;",
            ">;"
        }
    .end annotation
.end field

.field private mIsPackageUpdating:Z

.field private mNotificationManager:Landroid/app/NotificationManager;

.field private mPackageManager:Landroid/content/pm/PackageManager;

.field private mPendingTask:Z

.field private mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

.field private mSecretComponentNameList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/content/ComponentName;",
            ">;"
        }
    .end annotation
.end field

.field private mVictimStyle:I


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .prologue
    .line 58
    new-instance v0, Landroid/os/HandlerThread;

    const-string v1, "ReginaLauncher-Loader"

    invoke-direct {v0, v1}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V

    sput-object v0, Lcom/nemustech/regina/AppInfoManager;->sWorkerThread:Landroid/os/HandlerThread;

    .line 60
    sget-object v0, Lcom/nemustech/regina/AppInfoManager;->sWorkerThread:Landroid/os/HandlerThread;

    invoke-virtual {v0}, Landroid/os/HandlerThread;->start()V

    .line 62
    new-instance v0, Landroid/os/Handler;

    sget-object v1, Lcom/nemustech/regina/AppInfoManager;->sWorkerThread:Landroid/os/HandlerThread;

    invoke-virtual {v1}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    sput-object v0, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    return-void
.end method

.method public constructor <init>(Lcom/nemustech/regina/ReginaLauncher;)V
    .locals 3
    .parameter "reginaLauncher"

    .prologue
    const/4 v2, 0x0

    .line 89
    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    .line 64
    new-instance v0, Landroid/database/DataSetObservable;

    invoke-direct {v0}, Landroid/database/DataSetObservable;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mDataSetObservable:Landroid/database/DataSetObservable;

    .line 65
    new-instance v0, Lcom/nemustech/tiffany/util/TFCache;

    const/16 v1, 0x140

    invoke-direct {v0, v1}, Lcom/nemustech/tiffany/util/TFCache;-><init>(I)V

    iput-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCache:Lcom/nemustech/tiffany/util/TFCache;

    .line 67
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mAppInfoData:Ljava/util/List;

    .line 69
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mDisplayedAppInfoData:Ljava/util/List;

    .line 70
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mSecretComponentNameList:Ljava/util/List;

    .line 73
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mElementBitmapCache:Ljava/util/HashMap;

    .line 77
    iput-boolean v2, p0, Lcom/nemustech/regina/AppInfoManager;->mAppInfoLoaded:Z

    .line 78
    iput-boolean v2, p0, Lcom/nemustech/regina/AppInfoManager;->mAppBitmapLoaded:Z

    .line 79
    iput-boolean v2, p0, Lcom/nemustech/regina/AppInfoManager;->mIsPackageUpdating:Z

    .line 80
    iput-boolean v2, p0, Lcom/nemustech/regina/AppInfoManager;->mPendingTask:Z

    .line 90
    iput-object p1, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    .line 91
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mPackageManager:Landroid/content/pm/PackageManager;

    .line 92
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/AppInfoManager;->registerReceiver(Landroid/content/Context;)V

    .line 93
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCache:Lcom/nemustech/tiffany/util/TFCache;

    invoke-virtual {v0, v2}, Lcom/nemustech/tiffany/util/TFCache;->setVictimStyle(I)V

    .line 102
    return-void
.end method

.method static synthetic access$000(Lcom/nemustech/regina/AppInfoManager;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    iget-boolean v0, p0, Lcom/nemustech/regina/AppInfoManager;->mAppInfoLoaded:Z

    return v0
.end method

.method static synthetic access$002(Lcom/nemustech/regina/AppInfoManager;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 36
    iput-boolean p1, p0, Lcom/nemustech/regina/AppInfoManager;->mAppInfoLoaded:Z

    return p1
.end method

.method static synthetic access$100(Lcom/nemustech/regina/AppInfoManager;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    iget-boolean v0, p0, Lcom/nemustech/regina/AppInfoManager;->mAppBitmapLoaded:Z

    return v0
.end method

.method static synthetic access$1000(Lcom/nemustech/regina/AppInfoManager;)Lcom/nemustech/regina/AppInfoManager$BitmapCacheLoader;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCacheLoader:Lcom/nemustech/regina/AppInfoManager$BitmapCacheLoader;

    return-object v0
.end method

.method static synthetic access$102(Lcom/nemustech/regina/AppInfoManager;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 36
    iput-boolean p1, p0, Lcom/nemustech/regina/AppInfoManager;->mAppBitmapLoaded:Z

    return p1
.end method

.method static synthetic access$1100(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mSecretComponentNameList:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$1200(Lcom/nemustech/regina/AppInfoManager;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/nemustech/regina/AppInfoManager;->setDisplayedAppInfoData()V

    return-void
.end method

.method static synthetic access$1302(Lcom/nemustech/regina/AppInfoManager;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 36
    iput-boolean p1, p0, Lcom/nemustech/regina/AppInfoManager;->mIsPackageUpdating:Z

    return p1
.end method

.method static synthetic access$1400(Lcom/nemustech/regina/AppInfoManager;Lcom/nemustech/regina/AppInfo;)Z
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 36
    invoke-direct {p0, p1}, Lcom/nemustech/regina/AppInfoManager;->removeFromDisplayedAppInfoData(Lcom/nemustech/regina/AppInfo;)Z

    move-result v0

    return v0
.end method

.method static synthetic access$1500(Lcom/nemustech/regina/AppInfoManager;Landroid/content/ComponentName;)Z
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 36
    invoke-direct {p0, p1}, Lcom/nemustech/regina/AppInfoManager;->removeFromSecretComponentNameList(Landroid/content/ComponentName;)Z

    move-result v0

    return v0
.end method

.method static synthetic access$1600(Landroid/content/Context;Ljava/lang/String;)Ljava/util/List;
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 36
    invoke-static {p0, p1}, Lcom/nemustech/regina/AppInfoManager;->findActivitiesForPackage(Landroid/content/Context;Ljava/lang/String;)Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$1700(Lcom/nemustech/regina/AppInfoManager;Lcom/nemustech/regina/AppInfo;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 36
    invoke-direct {p0, p1}, Lcom/nemustech/regina/AppInfoManager;->addAtDisplayedAppInfoData(Lcom/nemustech/regina/AppInfo;)V

    return-void
.end method

.method static synthetic access$1800(Lcom/nemustech/regina/AppInfoManager;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    iget v0, p0, Lcom/nemustech/regina/AppInfoManager;->mVictimStyle:I

    return v0
.end method

.method static synthetic access$200(Lcom/nemustech/regina/AppInfoManager;)Lcom/nemustech/tiffany/util/TFCache;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCache:Lcom/nemustech/tiffany/util/TFCache;

    return-object v0
.end method

.method static synthetic access$300(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mDisplayedAppInfoData:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$400(Lcom/nemustech/regina/AppInfoManager;)Landroid/content/pm/PackageManager;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mPackageManager:Landroid/content/pm/PackageManager;

    return-object v0
.end method

.method static synthetic access$500(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/HashMap;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mElementBitmapCache:Ljava/util/HashMap;

    return-object v0
.end method

.method static synthetic access$600(Lcom/nemustech/regina/AppInfoManager;)Lcom/nemustech/regina/ReginaLauncher;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    return-object v0
.end method

.method static synthetic access$700(Lcom/nemustech/regina/AppInfoManager;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    iget-boolean v0, p0, Lcom/nemustech/regina/AppInfoManager;->mPendingTask:Z

    return v0
.end method

.method static synthetic access$702(Lcom/nemustech/regina/AppInfoManager;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 36
    iput-boolean p1, p0, Lcom/nemustech/regina/AppInfoManager;->mPendingTask:Z

    return p1
.end method

.method static synthetic access$800()Landroid/os/Handler;
    .locals 1

    .prologue
    .line 36
    sget-object v0, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$900(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;
    .locals 1
    .parameter "x0"

    .prologue
    .line 36
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mAppInfoData:Ljava/util/List;

    return-object v0
.end method

.method private addAtDisplayedAppInfoData(Lcom/nemustech/regina/AppInfo;)V
    .locals 4
    .parameter "appInfo"

    .prologue
    .line 460
    const/4 v1, 0x0

    .line 463
    .local v1, isAdded:Z
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    iget-object v2, p0, Lcom/nemustech/regina/AppInfoManager;->mDisplayedAppInfoData:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-ge v0, v2, :cond_2

    .line 464
    iget-object v2, p0, Lcom/nemustech/regina/AppInfoManager;->mDisplayedAppInfoData:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/nemustech/regina/AppInfo;

    iget-object v2, v2, Lcom/nemustech/regina/AppInfo;->title:Ljava/lang/CharSequence;

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p1, Lcom/nemustech/regina/AppInfo;->title:Ljava/lang/CharSequence;

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 463
    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 466
    :cond_1
    iget-object v2, p0, Lcom/nemustech/regina/AppInfoManager;->mDisplayedAppInfoData:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/nemustech/regina/AppInfo;

    iget-object v2, v2, Lcom/nemustech/regina/AppInfo;->title:Ljava/lang/CharSequence;

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p1, Lcom/nemustech/regina/AppInfo;->title:Ljava/lang/CharSequence;

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->compareToIgnoreCase(Ljava/lang/String;)I

    move-result v2

    if-lez v2, :cond_0

    .line 467
    iget-object v2, p0, Lcom/nemustech/regina/AppInfoManager;->mDisplayedAppInfoData:Ljava/util/List;

    invoke-interface {v2, v0, p1}, Ljava/util/List;->add(ILjava/lang/Object;)V

    .line 468
    const/4 v1, 0x1

    .line 474
    :cond_2
    if-nez v1, :cond_3

    .line 475
    iget-object v2, p0, Lcom/nemustech/regina/AppInfoManager;->mDisplayedAppInfoData:Ljava/util/List;

    invoke-interface {v2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 477
    :cond_3
    return-void
.end method

.method private addAtSecretComponentNameList(Landroid/content/ComponentName;)V
    .locals 4
    .parameter "componentName"

    .prologue
    .line 502
    new-instance v1, Landroid/content/ContentValues;

    invoke-direct {v1}, Landroid/content/ContentValues;-><init>()V

    .line 503
    .local v1, values:Landroid/content/ContentValues;
    const-string v2, "packageName"

    invoke-virtual {p1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 504
    const-string v2, "className"

    invoke-virtual {p1}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 506
    iget-object v2, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v2}, Lcom/nemustech/regina/ReginaLauncher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 507
    .local v0, resolver:Landroid/content/ContentResolver;
    sget-object v2, Lcom/nemustech/regina/ReginaSettings$SecretComponentNames;->CONTENT_URI:Landroid/net/Uri;

    invoke-virtual {v0, v2, v1}, Landroid/content/ContentResolver;->insert(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;

    .line 509
    iget-object v2, p0, Lcom/nemustech/regina/AppInfoManager;->mSecretComponentNameList:Ljava/util/List;

    invoke-interface {v2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 510
    return-void
.end method

.method private enqueueChangedPackageTask(Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;)V
    .locals 2
    .parameter "changedPackageTask"

    .prologue
    .line 624
    sget-object v0, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    monitor-enter v0

    .line 625
    :try_start_0
    sget-object v1, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V

    .line 626
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 627
    sget-object v0, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    invoke-virtual {v0, p1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 628
    return-void

    .line 626
    :catchall_0
    move-exception v1

    :try_start_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v1
.end method

.method private static findActivitiesForPackage(Landroid/content/Context;Ljava/lang/String;)Ljava/util/List;
    .locals 5
    .parameter "context"
    .parameter "packageName"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List",
            "<",
            "Landroid/content/pm/ResolveInfo;",
            ">;"
        }
    .end annotation

    .prologue
    .line 817
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    .line 819
    .local v2, packageManager:Landroid/content/pm/PackageManager;
    new-instance v1, Landroid/content/Intent;

    const-string v3, "android.intent.action.MAIN"

    const/4 v4, 0x0

    invoke-direct {v1, v3, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 820
    .local v1, mainIntent:Landroid/content/Intent;
    const-string v3, "android.intent.category.LAUNCHER"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    .line 821
    invoke-virtual {v1, p1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 823
    const/4 v3, 0x0

    invoke-virtual {v2, v1, v3}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;

    move-result-object v0

    .line 824
    .local v0, apps:Ljava/util/List;,"Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
    if-eqz v0, :cond_0

    move-object v3, v0

    :goto_0
    return-object v3

    :cond_0
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    goto :goto_0
.end method

.method private getNotificationMessage(I)Ljava/lang/CharSequence;
    .locals 3
    .parameter "messageType"

    .prologue
    .line 408
    iget-object v2, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v2}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v0

    .line 409
    .local v0, res:Lcom/nemustech/regina/ResourceCare;
    const/4 v1, 0x0

    .line 411
    .local v1, title:Ljava/lang/CharSequence;
    packed-switch p1, :pswitch_data_0

    .line 425
    :goto_0
    return-object v1

    .line 413
    :pswitch_0
    const v2, 0x7f07000c

    invoke-virtual {v0, v2}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 414
    goto :goto_0

    .line 416
    :pswitch_1
    const v2, 0x7f07000d

    invoke-virtual {v0, v2}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 417
    goto :goto_0

    .line 419
    :pswitch_2
    const v2, 0x7f07000e

    invoke-virtual {v0, v2}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 420
    goto :goto_0

    .line 422
    :pswitch_3
    const v2, 0x7f07000f

    invoke-virtual {v0, v2}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v1

    goto :goto_0

    .line 411
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method private removeElementFromNormalWorkspace(Landroid/content/ComponentName;)V
    .locals 11
    .parameter "componentName"

    .prologue
    const/4 v10, 0x0

    .line 513
    iget-object v8, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v8}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v5

    .line 514
    .local v5, locator:Lcom/nemustech/regina/ElementLocator;
    invoke-virtual {v5, v10}, Lcom/nemustech/regina/ElementLocator;->getWorkspaceCountByType(I)I

    move-result v7

    .line 516
    .local v7, workspaceCount:I
    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    .line 517
    .local v4, list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/nemustech/regina/Element;>;"
    const/4 v2, 0x0

    .local v2, i:I
    :goto_0
    if-ge v2, v7, :cond_2

    .line 518
    invoke-virtual {v5, v10, v2}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(II)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v6

    .line 519
    .local v6, workspace:Lcom/nemustech/regina/RGWorkspace;
    invoke-virtual {v6}, Lcom/nemustech/regina/RGWorkspace;->getElementList()Ljava/util/ArrayList;

    move-result-object v1

    .line 520
    .local v1, elements:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/nemustech/regina/Element;>;"
    const/4 v3, 0x0

    .local v3, j:I
    :goto_1
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v8

    if-ge v3, v8, :cond_1

    .line 521
    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/Element;

    .line 522
    .local v0, element:Lcom/nemustech/regina/Element;
    instance-of v8, v0, Lcom/nemustech/regina/ElementShortcut;

    if-eqz v8, :cond_0

    invoke-virtual {p1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v0}, Lcom/nemustech/regina/Element;->getPackageName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_0

    invoke-virtual {p1}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v0}, Lcom/nemustech/regina/Element;->getClassName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_0

    .line 525
    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 520
    :cond_0
    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    .line 517
    .end local v0           #element:Lcom/nemustech/regina/Element;
    :cond_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 530
    .end local v1           #elements:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/nemustech/regina/Element;>;"
    .end local v3           #j:I
    .end local v6           #workspace:Lcom/nemustech/regina/RGWorkspace;
    :cond_2
    const/4 v2, 0x0

    :goto_2
    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v8

    if-ge v2, v8, :cond_4

    .line 531
    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/Element;

    .line 532
    .restart local v0       #element:Lcom/nemustech/regina/Element;
    invoke-virtual {v0}, Lcom/nemustech/regina/Element;->getWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v6

    .line 533
    .restart local v6       #workspace:Lcom/nemustech/regina/RGWorkspace;
    invoke-virtual {v6, v0}, Lcom/nemustech/regina/RGWorkspace;->removeElement(Lcom/nemustech/regina/Element;)Z

    move-result v8

    if-eqz v8, :cond_3

    .line 534
    iget-object v8, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v8, v0}, Lcom/nemustech/regina/ReginaLauncher;->deleteElementFromDatabase(Lcom/nemustech/regina/Element;)V

    .line 530
    :cond_3
    add-int/lit8 v2, v2, 0x1

    goto :goto_2

    .line 537
    .end local v0           #element:Lcom/nemustech/regina/Element;
    .end local v6           #workspace:Lcom/nemustech/regina/RGWorkspace;
    :cond_4
    return-void
.end method

.method private removeFromDisplayedAppInfoData(Lcom/nemustech/regina/AppInfo;)Z
    .locals 5
    .parameter "appInfo"

    .prologue
    .line 447
    iget-object v4, p1, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v4}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v3

    .line 448
    .local v3, removedPackageName:Ljava/lang/String;
    const/4 v1, 0x0

    .local v1, j:I
    :goto_0
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mDisplayedAppInfoData:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    if-ge v1, v4, :cond_1

    .line 449
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mDisplayedAppInfoData:Ljava/util/List;

    invoke-interface {v4, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/AppInfo;

    .line 450
    .local v0, info:Lcom/nemustech/regina/AppInfo;
    iget-object v4, v0, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v4}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v2

    .line 451
    .local v2, packageName:Ljava/lang/String;
    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 452
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mDisplayedAppInfoData:Ljava/util/List;

    invoke-interface {v4, v1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    .line 453
    const/4 v4, 0x1

    .line 456
    .end local v0           #info:Lcom/nemustech/regina/AppInfo;
    .end local v2           #packageName:Ljava/lang/String;
    :goto_1
    return v4

    .line 448
    .restart local v0       #info:Lcom/nemustech/regina/AppInfo;
    .restart local v2       #packageName:Ljava/lang/String;
    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 456
    .end local v0           #info:Lcom/nemustech/regina/AppInfo;
    .end local v2           #packageName:Ljava/lang/String;
    :cond_1
    const/4 v4, 0x0

    goto :goto_1
.end method

.method private removeFromSecretComponentNameList(Landroid/content/ComponentName;)Z
    .locals 5
    .parameter "componentName"

    .prologue
    .line 481
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    iget-object v2, p0, Lcom/nemustech/regina/AppInfoManager;->mSecretComponentNameList:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-ge v0, v2, :cond_1

    .line 482
    iget-object v2, p0, Lcom/nemustech/regina/AppInfoManager;->mSecretComponentNameList:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {p1, v2}, Landroid/content/ComponentName;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 483
    iget-object v2, p0, Lcom/nemustech/regina/AppInfoManager;->mSecretComponentNameList:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    .line 485
    iget-object v2, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v2}, Lcom/nemustech/regina/ReginaLauncher;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    .line 486
    .local v1, resolver:Landroid/content/ContentResolver;
    sget-object v2, Lcom/nemustech/regina/ReginaSettings$SecretComponentNames;->CONTENT_URI:Landroid/net/Uri;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "packageName = \""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {p1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "\" and "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "className = \""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {p1}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "\""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x0

    invoke-virtual {v1, v2, v3, v4}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I

    .line 495
    const/4 v2, 0x1

    .line 498
    .end local v1           #resolver:Landroid/content/ContentResolver;
    :goto_1
    return v2

    .line 481
    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 498
    :cond_1
    const/4 v2, 0x0

    goto :goto_1
.end method

.method private setDisplayedAppInfoData()V
    .locals 6

    .prologue
    .line 431
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mDisplayedAppInfoData:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->clear()V

    .line 432
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mDisplayedAppInfoData:Ljava/util/List;

    iget-object v5, p0, Lcom/nemustech/regina/AppInfoManager;->mAppInfoData:Ljava/util/List;

    invoke-interface {v4, v5}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 434
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mSecretComponentNameList:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    if-ge v0, v4, :cond_2

    .line 435
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mSecretComponentNameList:Ljava/util/List;

    invoke-interface {v4, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/content/ComponentName;

    .line 436
    .local v3, secretComponentName:Landroid/content/ComponentName;
    const/4 v2, 0x0

    .local v2, j:I
    :goto_1
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mDisplayedAppInfoData:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    if-ge v2, v4, :cond_0

    .line 437
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mDisplayedAppInfoData:Ljava/util/List;

    invoke-interface {v4, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/nemustech/regina/AppInfo;

    .line 438
    .local v1, info:Lcom/nemustech/regina/AppInfo;
    iget-object v4, v1, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v4}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/content/ComponentName;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 439
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mDisplayedAppInfoData:Ljava/util/List;

    invoke-interface {v4, v2}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    .line 434
    .end local v1           #info:Lcom/nemustech/regina/AppInfo;
    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 436
    .restart local v1       #info:Lcom/nemustech/regina/AppInfo;
    :cond_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    .line 444
    .end local v1           #info:Lcom/nemustech/regina/AppInfo;
    .end local v2           #j:I
    .end local v3           #secretComponentName:Landroid/content/ComponentName;
    :cond_2
    return-void
.end method


# virtual methods
.method public declared-synchronized abortLoader()V
    .locals 2

    .prologue
    .line 147
    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mAppLoader:Lcom/nemustech/regina/AppInfoManager$AppLoader;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mAppLoader:Lcom/nemustech/regina/AppInfoManager$AppLoader;

    invoke-virtual {v0}, Lcom/nemustech/regina/AppInfoManager$AppLoader;->isRunning()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 148
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mAppLoader:Lcom/nemustech/regina/AppInfoManager$AppLoader;

    invoke-virtual {v0}, Lcom/nemustech/regina/AppInfoManager$AppLoader;->stop()V

    .line 149
    sget-object v0, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    iget-object v1, p0, Lcom/nemustech/regina/AppInfoManager;->mAppLoader:Lcom/nemustech/regina/AppInfoManager$AppLoader;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 151
    :cond_0
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCacheLoader:Lcom/nemustech/regina/AppInfoManager$BitmapCacheLoader;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCacheLoader:Lcom/nemustech/regina/AppInfoManager$BitmapCacheLoader;

    invoke-virtual {v0}, Lcom/nemustech/regina/AppInfoManager$BitmapCacheLoader;->isRunning()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 152
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCacheLoader:Lcom/nemustech/regina/AppInfoManager$BitmapCacheLoader;

    invoke-virtual {v0}, Lcom/nemustech/regina/AppInfoManager$BitmapCacheLoader;->stop()V

    .line 153
    sget-object v0, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    iget-object v1, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCacheLoader:Lcom/nemustech/regina/AppInfoManager$BitmapCacheLoader;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 155
    :cond_1
    monitor-exit p0

    return-void

    .line 147
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public cancelNotificationMessage()V
    .locals 2

    .prologue
    .line 401
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mNotificationManager:Landroid/app/NotificationManager;

    if-eqz v0, :cond_0

    .line 402
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mNotificationManager:Landroid/app/NotificationManager;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/NotificationManager;->cancel(I)V

    .line 404
    :cond_0
    return-void
.end method

.method public clearElementBitmapCache()V
    .locals 2

    .prologue
    .line 134
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mElementBitmapCache:Ljava/util/HashMap;

    monitor-enter v0

    .line 135
    :try_start_0
    iget-object v1, p0, Lcom/nemustech/regina/AppInfoManager;->mElementBitmapCache:Ljava/util/HashMap;

    invoke-virtual {v1}, Ljava/util/HashMap;->clear()V

    .line 136
    monitor-exit v0

    .line 137
    return-void

    .line 136
    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public getAppInfo()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Lcom/nemustech/regina/AppInfo;",
            ">;"
        }
    .end annotation

    .prologue
    .line 166
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->isSecretMode()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mAppInfoData:Ljava/util/List;

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mDisplayedAppInfoData:Ljava/util/List;

    goto :goto_0
.end method

.method public getBitmap(Landroid/content/Intent;)Landroid/graphics/Bitmap;
    .locals 4
    .parameter "intent"

    .prologue
    .line 237
    const/4 v0, 0x0

    .line 238
    .local v0, bitmap:Landroid/graphics/Bitmap;
    invoke-virtual {p1}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 239
    const-string v1, "AppInfoManager"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "getBitmap using by intent - class name : "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {p1}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/ComponentName;->flattenToString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 240
    if-eqz p1, :cond_0

    invoke-virtual {p1}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-virtual {p1}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/ComponentName;->flattenToString()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 241
    iget-object v1, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCache:Lcom/nemustech/tiffany/util/TFCache;

    invoke-virtual {p1}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/ComponentName;->flattenToString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/nemustech/tiffany/util/TFCache;->get(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 243
    :cond_0
    return-object v0
.end method

.method public getBitmap(Lcom/nemustech/regina/AppInfo;Z)Landroid/graphics/Bitmap;
    .locals 9
    .parameter "appInfo"
    .parameter "updateCache"

    .prologue
    const/4 v8, 0x0

    .line 208
    const-string v5, "AppInfoManager"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "getBitmap using by appInfo - class name : "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget-object v7, p1, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v7}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v7

    invoke-virtual {v7}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6, v8}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 209
    iget-object v5, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCache:Lcom/nemustech/tiffany/util/TFCache;

    iget-object v6, p1, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v6}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v6

    invoke-virtual {v6}, Landroid/content/ComponentName;->flattenToString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Lcom/nemustech/tiffany/util/TFCache;->get(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 211
    .local v1, bitmap:Landroid/graphics/Bitmap;
    if-nez v1, :cond_2

    .line 212
    iget-object v4, p1, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    .line 213
    .local v4, intent:Landroid/content/Intent;
    iget-object v5, p0, Lcom/nemustech/regina/AppInfoManager;->mPackageManager:Landroid/content/pm/PackageManager;

    invoke-virtual {v5, v4, v8}, Landroid/content/pm/PackageManager;->resolveActivity(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;

    move-result-object v3

    .line 214
    .local v3, info:Landroid/content/pm/ResolveInfo;
    const/4 v2, 0x0

    .line 215
    .local v2, icon:Landroid/graphics/drawable/Drawable;
    if-eqz v3, :cond_1

    .line 216
    iget-object v5, v3, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v6, p0, Lcom/nemustech/regina/AppInfoManager;->mPackageManager:Landroid/content/pm/PackageManager;

    invoke-virtual {v5, v6}, Landroid/content/pm/ActivityInfo;->loadIcon(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    .line 217
    iget-object v5, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCache:Lcom/nemustech/tiffany/util/TFCache;

    iget v6, p0, Lcom/nemustech/regina/AppInfoManager;->mVictimStyle:I

    invoke-virtual {v5, v6}, Lcom/nemustech/tiffany/util/TFCache;->setVictimStyle(I)V

    .line 218
    iget-object v5, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v5, v2}, Lcom/nemustech/regina/RUtils;->createIconThumbnail(Landroid/content/Context;Landroid/graphics/drawable/Drawable;)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 219
    const-string v5, "AppInfoManager"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "cache miss!!!!, cache size : "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {p0}, Lcom/nemustech/regina/AppInfoManager;->getBitmapCachedCount()I

    move-result v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6, v8}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 220
    iget-boolean v5, p0, Lcom/nemustech/regina/AppInfoManager;->mAppBitmapLoaded:Z

    if-eqz v5, :cond_0

    iget-boolean v5, p0, Lcom/nemustech/regina/AppInfoManager;->mIsPackageUpdating:Z

    if-nez v5, :cond_0

    if-eqz p2, :cond_0

    .line 221
    const-string v5, "AppInfoManager"

    const-string v6, "putting Bitmap cache in getBitmap()!"

    invoke-static {v5, v6, v8}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 222
    iget-object v5, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCache:Lcom/nemustech/tiffany/util/TFCache;

    monitor-enter v5

    .line 223
    :try_start_0
    iget-object v6, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCache:Lcom/nemustech/tiffany/util/TFCache;

    iget-object v7, p1, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v7}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v7

    invoke-virtual {v7}, Landroid/content/ComponentName;->flattenToString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7, v1}, Lcom/nemustech/tiffany/util/TFCache;->put(Ljava/lang/String;Landroid/graphics/Bitmap;)V

    .line 224
    monitor-exit v5

    .line 233
    .end local v2           #icon:Landroid/graphics/drawable/Drawable;
    .end local v3           #info:Landroid/content/pm/ResolveInfo;
    .end local v4           #intent:Landroid/content/Intent;
    :cond_0
    :goto_0
    return-object v1

    .line 224
    .restart local v2       #icon:Landroid/graphics/drawable/Drawable;
    .restart local v3       #info:Landroid/content/pm/ResolveInfo;
    .restart local v4       #intent:Landroid/content/Intent;
    :catchall_0
    move-exception v6

    monitor-exit v5
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v6

    .line 227
    :cond_1
    iget-object v5, p0, Lcom/nemustech/regina/AppInfoManager;->mPackageManager:Landroid/content/pm/PackageManager;

    invoke-virtual {v5}, Landroid/content/pm/PackageManager;->getDefaultActivityIcon()Landroid/graphics/drawable/Drawable;

    move-result-object v2

    .line 228
    move-object v0, v2

    check-cast v0, Landroid/graphics/drawable/BitmapDrawable;

    move-object v5, v0

    invoke-virtual {v5}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object v1

    goto :goto_0

    .line 231
    .end local v2           #icon:Landroid/graphics/drawable/Drawable;
    .end local v3           #info:Landroid/content/pm/ResolveInfo;
    .end local v4           #intent:Landroid/content/Intent;
    :cond_2
    const-string v5, "AppInfoManager"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "cache hit!!!!, cache size : "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {p0}, Lcom/nemustech/regina/AppInfoManager;->getBitmapCachedCount()I

    move-result v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6, v8}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto :goto_0
.end method

.method public getBitmapCachedCount()I
    .locals 1

    .prologue
    .line 204
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCache:Lcom/nemustech/tiffany/util/TFCache;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/util/TFCache;->getCachedCount()I

    move-result v0

    return v0
.end method

.method public getCachedElementBitmap(Landroid/content/ComponentName;)Landroid/graphics/Bitmap;
    .locals 3
    .parameter "componentName"

    .prologue
    .line 140
    iget-object v1, p0, Lcom/nemustech/regina/AppInfoManager;->mElementBitmapCache:Ljava/util/HashMap;

    monitor-enter v1

    .line 141
    :try_start_0
    iget-object v2, p0, Lcom/nemustech/regina/AppInfoManager;->mElementBitmapCache:Ljava/util/HashMap;

    invoke-virtual {v2, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/graphics/Bitmap;

    .line 142
    .local v0, bitmap:Landroid/graphics/Bitmap;
    monitor-exit v1

    return-object v0

    .line 143
    .end local v0           #bitmap:Landroid/graphics/Bitmap;
    :catchall_0
    move-exception v2

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v2
.end method

.method public isAppInfoLoaded()Z
    .locals 1

    .prologue
    .line 352
    iget-boolean v0, p0, Lcom/nemustech/regina/AppInfoManager;->mAppInfoLoaded:Z

    return v0
.end method

.method public isBitmapLoaded()Z
    .locals 1

    .prologue
    .line 200
    iget-boolean v0, p0, Lcom/nemustech/regina/AppInfoManager;->mAppBitmapLoaded:Z

    return v0
.end method

.method public isExistAppInfo(Ljava/lang/String;)Z
    .locals 6
    .parameter "schPackageName"

    .prologue
    const/4 v5, 0x0

    .line 170
    if-nez p1, :cond_0

    move v4, v5

    .line 180
    :goto_0
    return v4

    .line 172
    :cond_0
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mAppInfoData:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v1

    .line 173
    .local v1, count:I
    const/4 v2, 0x0

    .local v2, i:I
    :goto_1
    if-ge v2, v1, :cond_2

    .line 174
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mAppInfoData:Ljava/util/List;

    invoke-interface {v4, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/AppInfo;

    .line 175
    .local v0, appInfo:Lcom/nemustech/regina/AppInfo;
    iget-object v4, v0, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v4}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v3

    .line 176
    .local v3, packageName:Ljava/lang/String;
    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 177
    const/4 v4, 0x1

    goto :goto_0

    .line 173
    :cond_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    .end local v0           #appInfo:Lcom/nemustech/regina/AppInfo;
    .end local v3           #packageName:Ljava/lang/String;
    :cond_2
    move v4, v5

    .line 180
    goto :goto_0
.end method

.method public notifyDataSetChanged()V
    .locals 1

    .prologue
    .line 184
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mDataSetObservable:Landroid/database/DataSetObservable;

    invoke-virtual {v0}, Landroid/database/DataSetObservable;->notifyChanged()V

    .line 185
    return-void
.end method

.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 18
    .parameter "context"
    .parameter "intent"

    .prologue
    .line 836
    invoke-virtual/range {p2 .. p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v4

    .line 838
    .local v4, action:Ljava/lang/String;
    const-string v15, "android.intent.action.PACKAGE_CHANGED"

    invoke-virtual {v15, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-nez v15, :cond_0

    const-string v15, "android.intent.action.PACKAGE_REMOVED"

    invoke-virtual {v15, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-nez v15, :cond_0

    const-string v15, "android.intent.action.PACKAGE_ADDED"

    invoke-virtual {v15, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-eqz v15, :cond_8

    .line 841
    :cond_0
    invoke-virtual/range {p2 .. p2}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v15

    invoke-virtual {v15}, Landroid/net/Uri;->getSchemeSpecificPart()Ljava/lang/String;

    move-result-object v12

    .line 842
    .local v12, packageName:Ljava/lang/String;
    const-string v15, "android.intent.extra.REPLACING"

    const/16 v16, 0x0

    move-object/from16 v0, p2

    move-object v1, v15

    move/from16 v2, v16

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v14

    .line 844
    .local v14, replacing:Z
    const/4 v11, 0x0

    .line 846
    .local v11, op:I
    if-eqz v12, :cond_1

    invoke-virtual {v12}, Ljava/lang/String;->length()I

    move-result v15

    if-nez v15, :cond_2

    .line 923
    .end local v11           #op:I
    .end local v12           #packageName:Ljava/lang/String;
    .end local v14           #replacing:Z
    :cond_1
    :goto_0
    return-void

    .line 850
    .restart local v11       #op:I
    .restart local v12       #packageName:Ljava/lang/String;
    .restart local v14       #replacing:Z
    :cond_2
    const-string v15, "android.intent.action.PACKAGE_CHANGED"

    invoke-virtual {v15, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-eqz v15, :cond_4

    .line 851
    const-string v15, "AppInfoManager"

    new-instance v16, Ljava/lang/StringBuilder;

    invoke-direct/range {v16 .. v16}, Ljava/lang/StringBuilder;-><init>()V

    const-string v17, "Intent.ACTION_PACKAGE_CHANGED!! - package name : "

    invoke-virtual/range {v16 .. v17}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    move-object/from16 v0, v16

    move-object v1, v12

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    const-string v17, "replace? = "

    invoke-virtual/range {v16 .. v17}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    move-object/from16 v0, v16

    move v1, v14

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v16

    const/16 v17, 0x0

    invoke-static/range {v15 .. v17}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 852
    const/4 v11, 0x2

    .line 871
    :cond_3
    :goto_1
    if-eqz v11, :cond_1

    .line 872
    new-instance v15, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;

    const/16 v16, 0x1

    move/from16 v0, v16

    new-array v0, v0, [Ljava/lang/String;

    move-object/from16 v16, v0

    const/16 v17, 0x0

    aput-object v12, v16, v17

    move-object v0, v15

    move-object/from16 v1, p0

    move v2, v11

    move-object/from16 v3, v16

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;-><init>(Lcom/nemustech/regina/AppInfoManager;I[Ljava/lang/String;)V

    move-object/from16 v0, p0

    move-object v1, v15

    invoke-direct {v0, v1}, Lcom/nemustech/regina/AppInfoManager;->enqueueChangedPackageTask(Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;)V

    goto :goto_0

    .line 853
    :cond_4
    const-string v15, "android.intent.action.PACKAGE_REMOVED"

    invoke-virtual {v15, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-eqz v15, :cond_5

    .line 854
    const-string v15, "AppInfoManager"

    new-instance v16, Ljava/lang/StringBuilder;

    invoke-direct/range {v16 .. v16}, Ljava/lang/StringBuilder;-><init>()V

    const-string v17, "Intent.ACTION_PACKAGE_REMOVED!! - package name : "

    invoke-virtual/range {v16 .. v17}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    move-object/from16 v0, v16

    move-object v1, v12

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    const-string v17, "replace? = "

    invoke-virtual/range {v16 .. v17}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    move-object/from16 v0, v16

    move v1, v14

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v16

    const/16 v17, 0x0

    invoke-static/range {v15 .. v17}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 855
    if-nez v14, :cond_3

    .line 856
    const/4 v11, 0x3

    goto :goto_1

    .line 858
    :cond_5
    const-string v15, "android.intent.action.PACKAGE_ADDED"

    invoke-virtual {v15, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-eqz v15, :cond_3

    .line 859
    const-string v15, "AppInfoManager"

    new-instance v16, Ljava/lang/StringBuilder;

    invoke-direct/range {v16 .. v16}, Ljava/lang/StringBuilder;-><init>()V

    const-string v17, "Intent.ACTION_PACKAGE_ADDED!! - package name : "

    invoke-virtual/range {v16 .. v17}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    move-object/from16 v0, v16

    move-object v1, v12

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    const-string v17, "replace? = "

    invoke-virtual/range {v16 .. v17}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v16

    move-object/from16 v0, v16

    move v1, v14

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v16

    const/16 v17, 0x0

    invoke-static/range {v15 .. v17}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 860
    const-string v15, "com.nemustech.regina.weatherserver"

    invoke-virtual {v12, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-eqz v15, :cond_6

    .line 861
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object v15, v0

    invoke-virtual {v15}, Lcom/nemustech/regina/ReginaLauncher;->getClockWidgetCount()I

    move-result v15

    if-lez v15, :cond_6

    .line 862
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    move-object v15, v0

    invoke-virtual {v15}, Lcom/nemustech/regina/ReginaLauncher;->startWeatherService()Z

    .line 864
    :cond_6
    if-nez v14, :cond_7

    .line 865
    const/4 v11, 0x1

    goto/16 :goto_1

    .line 867
    :cond_7
    const/4 v11, 0x2

    goto/16 :goto_1

    .line 875
    .end local v11           #op:I
    .end local v12           #packageName:Ljava/lang/String;
    .end local v14           #replacing:Z
    :cond_8
    const-string v15, "android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE"

    invoke-virtual {v15, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-eqz v15, :cond_9

    .line 876
    const-string v15, "AppInfoManager"

    const-string v16, "Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE!!"

    const/16 v17, 0x0

    invoke-static/range {v15 .. v17}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 877
    const-string v15, "android.intent.extra.changed_package_list"

    move-object/from16 v0, p2

    move-object v1, v15

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringArrayExtra(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v13

    .line 878
    .local v13, packages:[Ljava/lang/String;
    new-instance v15, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;

    const/16 v16, 0x4

    move-object v0, v15

    move-object/from16 v1, p0

    move/from16 v2, v16

    move-object v3, v13

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;-><init>(Lcom/nemustech/regina/AppInfoManager;I[Ljava/lang/String;)V

    move-object/from16 v0, p0

    move-object v1, v15

    invoke-direct {v0, v1}, Lcom/nemustech/regina/AppInfoManager;->enqueueChangedPackageTask(Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;)V

    goto/16 :goto_0

    .line 880
    .end local v13           #packages:[Ljava/lang/String;
    :cond_9
    const-string v15, "android.intent.action.EXTERNAL_APPLICATIONS_UNAVAILABLE"

    invoke-virtual {v15, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-eqz v15, :cond_a

    .line 881
    const-string v15, "AppInfoManager"

    const-string v16, "Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE!!"

    const/16 v17, 0x0

    invoke-static/range {v15 .. v17}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 882
    const-string v15, "android.intent.extra.changed_package_list"

    move-object/from16 v0, p2

    move-object v1, v15

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringArrayExtra(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v13

    .line 883
    .restart local v13       #packages:[Ljava/lang/String;
    new-instance v15, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;

    const/16 v16, 0x5

    move-object v0, v15

    move-object/from16 v1, p0

    move/from16 v2, v16

    move-object v3, v13

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;-><init>(Lcom/nemustech/regina/AppInfoManager;I[Ljava/lang/String;)V

    move-object/from16 v0, p0

    move-object v1, v15

    invoke-direct {v0, v1}, Lcom/nemustech/regina/AppInfoManager;->enqueueChangedPackageTask(Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;)V

    goto/16 :goto_0

    .line 885
    .end local v13           #packages:[Ljava/lang/String;
    :cond_a
    const-string v15, "ACTION_SET_SECRET_APPLIST"

    invoke-virtual {v15, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-eqz v15, :cond_1

    .line 891
    const-string v15, "AddComponentNameList"

    move-object/from16 v0, p2

    move-object v1, v15

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v10

    .line 892
    .local v10, list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/content/ComponentName;>;"
    invoke-virtual {v10}, Ljava/util/ArrayList;->size()I

    move-result v15

    if-lez v15, :cond_b

    .line 893
    const/4 v8, 0x0

    .local v8, i:I
    :goto_2
    invoke-virtual {v10}, Ljava/util/ArrayList;->size()I

    move-result v15

    if-ge v8, v15, :cond_b

    .line 894
    invoke-virtual {v10, v8}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Landroid/content/ComponentName;

    .line 895
    .local v6, componentName:Landroid/content/ComponentName;
    move-object/from16 v0, p0

    move-object v1, v6

    invoke-direct {v0, v1}, Lcom/nemustech/regina/AppInfoManager;->addAtSecretComponentNameList(Landroid/content/ComponentName;)V

    .line 897
    new-instance v5, Lcom/nemustech/regina/AppInfo;

    invoke-direct {v5}, Lcom/nemustech/regina/AppInfo;-><init>()V

    .line 898
    .local v5, appInfo:Lcom/nemustech/regina/AppInfo;
    const/high16 v15, 0x1020

    invoke-virtual {v5, v6, v15}, Lcom/nemustech/regina/AppInfo;->setActivity(Landroid/content/ComponentName;I)V

    .line 899
    move-object/from16 v0, p0

    move-object v1, v5

    invoke-direct {v0, v1}, Lcom/nemustech/regina/AppInfoManager;->removeFromDisplayedAppInfoData(Lcom/nemustech/regina/AppInfo;)Z

    .line 901
    move-object/from16 v0, p0

    move-object v1, v6

    invoke-direct {v0, v1}, Lcom/nemustech/regina/AppInfoManager;->removeElementFromNormalWorkspace(Landroid/content/ComponentName;)V

    .line 893
    add-int/lit8 v8, v8, 0x1

    goto :goto_2

    .line 905
    .end local v5           #appInfo:Lcom/nemustech/regina/AppInfo;
    .end local v6           #componentName:Landroid/content/ComponentName;
    .end local v8           #i:I
    :cond_b
    const-string v15, "RemoveComponentNameList"

    move-object/from16 v0, p2

    move-object v1, v15

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v10

    .line 906
    const/4 v8, 0x0

    .restart local v8       #i:I
    :goto_3
    invoke-virtual {v10}, Ljava/util/ArrayList;->size()I

    move-result v15

    if-ge v8, v15, :cond_d

    .line 907
    invoke-virtual {v10, v8}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Landroid/content/ComponentName;

    .line 908
    .restart local v6       #componentName:Landroid/content/ComponentName;
    move-object/from16 v0, p0

    move-object v1, v6

    invoke-direct {v0, v1}, Lcom/nemustech/regina/AppInfoManager;->removeFromSecretComponentNameList(Landroid/content/ComponentName;)Z

    move-result v15

    if-eqz v15, :cond_c

    .line 910
    :try_start_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager;->mPackageManager:Landroid/content/pm/PackageManager;

    move-object v15, v0

    const/16 v16, 0x80

    move-object v0, v15

    move-object v1, v6

    move/from16 v2, v16

    invoke-virtual {v0, v1, v2}, Landroid/content/pm/PackageManager;->getActivityInfo(Landroid/content/ComponentName;I)Landroid/content/pm/ActivityInfo;

    move-result-object v9

    .line 911
    .local v9, info:Landroid/content/pm/ActivityInfo;
    new-instance v5, Lcom/nemustech/regina/AppInfo;

    invoke-direct {v5}, Lcom/nemustech/regina/AppInfo;-><init>()V

    .line 912
    .restart local v5       #appInfo:Lcom/nemustech/regina/AppInfo;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager;->mPackageManager:Landroid/content/pm/PackageManager;

    move-object v15, v0

    invoke-virtual {v9, v15}, Landroid/content/pm/ActivityInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;

    move-result-object v15

    iput-object v15, v5, Lcom/nemustech/regina/AppInfo;->title:Ljava/lang/CharSequence;

    .line 913
    const/high16 v15, 0x1020

    invoke-virtual {v5, v6, v15}, Lcom/nemustech/regina/AppInfo;->setActivity(Landroid/content/ComponentName;I)V

    .line 914
    move-object/from16 v0, p0

    move-object v1, v5

    invoke-direct {v0, v1}, Lcom/nemustech/regina/AppInfoManager;->addAtDisplayedAppInfoData(Lcom/nemustech/regina/AppInfo;)V
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 906
    .end local v5           #appInfo:Lcom/nemustech/regina/AppInfo;
    .end local v9           #info:Landroid/content/pm/ActivityInfo;
    :cond_c
    :goto_4
    add-int/lit8 v8, v8, 0x1

    goto :goto_3

    .line 915
    :catch_0
    move-exception v15

    move-object v7, v15

    .line 917
    .local v7, e:Landroid/content/pm/PackageManager$NameNotFoundException;
    invoke-virtual {v7}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V

    goto :goto_4

    .line 921
    .end local v6           #componentName:Landroid/content/ComponentName;
    .end local v7           #e:Landroid/content/pm/PackageManager$NameNotFoundException;
    :cond_d
    invoke-virtual/range {p0 .. p0}, Lcom/nemustech/regina/AppInfoManager;->notifyDataSetChanged()V

    goto/16 :goto_0
.end method

.method public postRunnable(Ljava/lang/Runnable;)V
    .locals 2
    .parameter "runnable"

    .prologue
    .line 356
    sget-object v0, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    monitor-enter v0

    .line 357
    :try_start_0
    sget-object v1, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V

    .line 358
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 359
    sget-object v0, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    invoke-virtual {v0, p1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 360
    return-void

    .line 358
    :catchall_0
    move-exception v1

    :try_start_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v1
.end method

.method public putElementBitmapCache(Landroid/content/ComponentName;Landroid/graphics/Bitmap;)V
    .locals 2
    .parameter "componentName"
    .parameter "bitmap"

    .prologue
    .line 128
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mElementBitmapCache:Ljava/util/HashMap;

    monitor-enter v0

    .line 129
    :try_start_0
    iget-object v1, p0, Lcom/nemustech/regina/AppInfoManager;->mElementBitmapCache:Ljava/util/HashMap;

    invoke-virtual {v1, p1, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 130
    monitor-exit v0

    .line 131
    return-void

    .line 130
    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public registerDataSetObserver(Landroid/database/DataSetObserver;)V
    .locals 1
    .parameter "observer"

    .prologue
    .line 188
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mDataSetObservable:Landroid/database/DataSetObservable;

    invoke-virtual {v0, p1}, Landroid/database/DataSetObservable;->registerObserver(Ljava/lang/Object;)V

    .line 189
    return-void
.end method

.method public registerReceiver(Landroid/content/Context;)V
    .locals 3
    .parameter "targetContext"

    .prologue
    .line 105
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    .line 106
    .local v0, intentFilter:Landroid/content/IntentFilter;
    const-string v2, "android.intent.action.PACKAGE_REMOVED"

    invoke-virtual {v0, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 107
    const-string v2, "android.intent.action.PACKAGE_ADDED"

    invoke-virtual {v0, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 108
    const-string v2, "android.intent.action.PACKAGE_CHANGED"

    invoke-virtual {v0, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 109
    const-string v2, "package"

    invoke-virtual {v0, v2}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V

    .line 110
    invoke-virtual {p1, p0, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 112
    new-instance v0, Landroid/content/IntentFilter;

    .end local v0           #intentFilter:Landroid/content/IntentFilter;
    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    .line 113
    .restart local v0       #intentFilter:Landroid/content/IntentFilter;
    const-string v2, "ACTION_SET_SECRET_APPLIST"

    invoke-virtual {v0, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 114
    invoke-virtual {p1, p0, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 116
    new-instance v1, Landroid/content/IntentFilter;

    invoke-direct {v1}, Landroid/content/IntentFilter;-><init>()V

    .line 117
    .local v1, intentFilterFroyo:Landroid/content/IntentFilter;
    const-string v2, "package"

    invoke-virtual {v0, v2}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V

    .line 118
    const-string v2, "android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE"

    invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 119
    const-string v2, "android.intent.action.EXTERNAL_APPLICATIONS_UNAVAILABLE"

    invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 120
    invoke-virtual {p1, p0, v1}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 121
    return-void
.end method

.method public removeCallbacks(Ljava/lang/Runnable;)V
    .locals 1
    .parameter "runnable"

    .prologue
    .line 363
    sget-object v0, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    invoke-virtual {v0, p1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 364
    return-void
.end method

.method public sendNotificationMessage(I)V
    .locals 9
    .parameter "messageType"

    .prologue
    const/4 v8, 0x0

    .line 385
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mNotificationManager:Landroid/app/NotificationManager;

    if-nez v4, :cond_0

    .line 386
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    const-string v5, "notification"

    invoke-virtual {v4, v5}, Lcom/nemustech/regina/ReginaLauncher;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/app/NotificationManager;

    iput-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mNotificationManager:Landroid/app/NotificationManager;

    .line 389
    :cond_0
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-static {v4}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v2

    .line 390
    .local v2, res:Lcom/nemustech/regina/ResourceCare;
    const v4, 0x7f07000b

    invoke-virtual {v2, v4}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 392
    .local v3, title:Ljava/lang/CharSequence;
    new-instance v1, Landroid/app/Notification;

    const v4, 0x7f020077

    invoke-direct {p0, p1}, Lcom/nemustech/regina/AppInfoManager;->getNotificationMessage(I)Ljava/lang/CharSequence;

    move-result-object v5

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v6

    invoke-direct {v1, v4, v5, v6, v7}, Landroid/app/Notification;-><init>(ILjava/lang/CharSequence;J)V

    .line 393
    .local v1, noti:Landroid/app/Notification;
    const/16 v4, 0x22

    iput v4, v1, Landroid/app/Notification;->flags:I

    .line 395
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    new-instance v5, Landroid/content/Intent;

    iget-object v6, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v6}, Lcom/nemustech/regina/ReginaLauncher;->getIntent()Landroid/content/Intent;

    move-result-object v6

    invoke-direct {v5, v6}, Landroid/content/Intent;-><init>(Landroid/content/Intent;)V

    invoke-static {v4, v8, v5, v8}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v0

    .line 396
    .local v0, intent:Landroid/app/PendingIntent;
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    invoke-direct {p0, p1}, Lcom/nemustech/regina/AppInfoManager;->getNotificationMessage(I)Ljava/lang/CharSequence;

    move-result-object v5

    invoke-virtual {v1, v4, v3, v5, v0}, Landroid/app/Notification;->setLatestEventInfo(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V

    .line 397
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager;->mNotificationManager:Landroid/app/NotificationManager;

    invoke-virtual {v4, v8, v1}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    .line 398
    return-void
.end method

.method public sendNotify()V
    .locals 2

    .prologue
    .line 343
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mReginaLauncher:Lcom/nemustech/regina/ReginaLauncher;

    new-instance v1, Lcom/nemustech/regina/AppInfoManager$1;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/AppInfoManager$1;-><init>(Lcom/nemustech/regina/AppInfoManager;)V

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 349
    return-void
.end method

.method public setScrollDirection(I)V
    .locals 1
    .parameter "scrollDirection"

    .prologue
    .line 196
    if-nez p1, :cond_0

    const/4 v0, 0x1

    :goto_0
    iput v0, p0, Lcom/nemustech/regina/AppInfoManager;->mVictimStyle:I

    .line 197
    return-void

    .line 196
    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public startAppLoader()V
    .locals 2

    .prologue
    .line 367
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mAppLoader:Lcom/nemustech/regina/AppInfoManager$AppLoader;

    if-nez v0, :cond_0

    .line 368
    new-instance v0, Lcom/nemustech/regina/AppInfoManager$AppLoader;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/AppInfoManager$AppLoader;-><init>(Lcom/nemustech/regina/AppInfoManager;)V

    iput-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mAppLoader:Lcom/nemustech/regina/AppInfoManager$AppLoader;

    .line 369
    :cond_0
    sget-object v0, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    monitor-enter v0

    .line 370
    :try_start_0
    sget-object v1, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V

    .line 371
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 372
    sget-object v0, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    iget-object v1, p0, Lcom/nemustech/regina/AppInfoManager;->mAppLoader:Lcom/nemustech/regina/AppInfoManager$AppLoader;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 373
    return-void

    .line 371
    :catchall_0
    move-exception v1

    :try_start_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v1
.end method

.method public startBitmapCacheLoader()V
    .locals 2

    .prologue
    .line 376
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCacheLoader:Lcom/nemustech/regina/AppInfoManager$BitmapCacheLoader;

    if-nez v0, :cond_0

    .line 377
    new-instance v0, Lcom/nemustech/regina/AppInfoManager$BitmapCacheLoader;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/AppInfoManager$BitmapCacheLoader;-><init>(Lcom/nemustech/regina/AppInfoManager;)V

    iput-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCacheLoader:Lcom/nemustech/regina/AppInfoManager$BitmapCacheLoader;

    .line 378
    :cond_0
    sget-object v0, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    monitor-enter v0

    .line 379
    :try_start_0
    sget-object v1, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V

    .line 380
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 381
    sget-object v0, Lcom/nemustech/regina/AppInfoManager;->sWorker:Landroid/os/Handler;

    iget-object v1, p0, Lcom/nemustech/regina/AppInfoManager;->mBitmapCacheLoader:Lcom/nemustech/regina/AppInfoManager$BitmapCacheLoader;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 382
    return-void

    .line 380
    :catchall_0
    move-exception v1

    :try_start_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v1
.end method

.method public unregisterDataSetObserver(Landroid/database/DataSetObserver;)V
    .locals 1
    .parameter "observer"

    .prologue
    .line 192
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager;->mDataSetObservable:Landroid/database/DataSetObservable;

    invoke-virtual {v0, p1}, Landroid/database/DataSetObservable;->unregisterObserver(Ljava/lang/Object;)V

    .line 193
    return-void
.end method

.method public unregisterReceiver(Landroid/content/Context;)V
    .locals 0
    .parameter "targetContext"

    .prologue
    .line 124
    invoke-virtual {p1, p0}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 125
    return-void
.end method
